Matthias Clasen [Mon, 31 Aug 2009 23:51:19 +0000 (19:51 -0400)]
Document gdk_window_geometry_changed
Matthias Clasen [Mon, 31 Aug 2009 23:41:09 +0000 (19:41 -0400)]
Handle geometry change correctly
This makes sure that the button is properly prelighted when rotating it
underneath the pointer by using keynav on the scale.
Matthias Clasen [Mon, 31 Aug 2009 23:36:35 +0000 (19:36 -0400)]
Add another offscreen demo
This demo shows rendering multiple times, to achieve a reflection effect.
Inspired by an earlier demo by macslow.
Paolo Borelli [Mon, 31 Aug 2009 19:56:14 +0000 (21:56 +0200)]
Make sure the paper dialog is destroyed with the parent
Paolo Borelli [Sun, 16 Aug 2009 00:36:15 +0000 (02:36 +0200)]
Remove unneeded call of begin/end user action
delete_interactive already uses them so no need to wrap the call.
Alexander Larsson [Mon, 31 Aug 2009 14:37:50 +0000 (16:37 +0200)]
Fix order of cairo clip setting when drawing text
We need to set the window clip region before applying the gc clip region,
otherwise we will reset the gc clip region. Fixes bug 593595
Alexander Larsson [Mon, 31 Aug 2009 14:16:23 +0000 (16:16 +0200)]
Describe how gdk_x11_drawable_get_xid() works wrt CSW in docs
krishnababu k [Mon, 31 Aug 2009 14:18:13 +0000 (19:48 +0530)]
Updated Telugu Translations
krishnababu k [Mon, 31 Aug 2009 14:17:32 +0000 (19:47 +0530)]
Updated Telugu Translations
Alexander Larsson [Fri, 28 Aug 2009 10:10:49 +0000 (12:10 +0200)]
Don't delay showing windows until viewable in GDK_NATIVE_WINDOWS mode
If all windows are native there is no need for delaying the operations
so we just do all shows/hides directly.
Alexander Larsson [Mon, 31 Aug 2009 07:38:14 +0000 (09:38 +0200)]
Don't propagate GDK_NATIVE_WINDOWS to child processes
Generally you only need to work around bugs in one specific app, so we
don't want to affect the applications that application will start.
Thus we unset GDK_NATIVE_WINDOWS after reading it.
Alexander Larsson [Thu, 27 Aug 2009 16:04:07 +0000 (18:04 +0200)]
Update shape handling
For toplevels, never apply clip as shape, instead apply shape.
This way we don't have to re-set it all the time as the window size
changes. Furthermore, this change fixes unsetting a shape on a
toplevel window which didn't actually unset the shape before.
Additionally we never apply clips as shape if the shape would just
be the same as the regular window size. This means we won't unnecessarily
add a useless shape to most native child windows (and additionally this
helps apps that do weird X stuff that don't expect these shaped windows).
Alexander Larsson [Fri, 28 Aug 2009 10:03:04 +0000 (12:03 +0200)]
Don't update window->shaped from backends
This is properly updated from the main code these days and
should not be touched by the backend code.
Alexander Larsson [Mon, 31 Aug 2009 08:44:11 +0000 (10:44 +0200)]
Use temporary impl_iface variable to make lines shorter
I.e. we use:
impl_iface = GDK_WINDOW_IMPL_GET_IFACE (private->impl);
And then use impl_iface instead of the full macro when calling vfuncs.
Also, in some places we avoid getting the iface multiple times.
Alexander Larsson [Mon, 31 Aug 2009 08:59:21 +0000 (10:59 +0200)]
Add and use gdk_window_is_toplevel when possible
This makes a lot of code cleaner and easier to understand
Alexander Larsson [Fri, 28 Aug 2009 10:48:13 +0000 (12:48 +0200)]
Add window type an shape to window print for nicer debugging
Alexander Larsson [Thu, 27 Aug 2009 13:55:01 +0000 (15:55 +0200)]
Support DEBUG_WINDOW_PRINTING even with GDK_NATIVE_WINDOWS
Piotr Drąg [Mon, 31 Aug 2009 12:50:28 +0000 (14:50 +0200)]
Updated Polish translation
Runa Bhattacharjee [Mon, 31 Aug 2009 12:29:19 +0000 (17:59 +0530)]
Updated Bengali India Translations
Shankar Prasad [Mon, 31 Aug 2009 09:50:18 +0000 (15:20 +0530)]
Updated Kannada(kn) translation
Shankar Prasad [Mon, 31 Aug 2009 09:06:51 +0000 (14:36 +0530)]
Updated Kannada(kn) translation
Matthias Clasen [Mon, 31 Aug 2009 05:26:11 +0000 (01:26 -0400)]
Add an migration chapter for CSW
Matthias Clasen [Mon, 31 Aug 2009 05:08:31 +0000 (01:08 -0400)]
Cosmetic fixes
Matthias Clasen [Mon, 31 Aug 2009 04:55:57 +0000 (00:55 -0400)]
Minor doc fix
Matthias Clasen [Mon, 31 Aug 2009 04:55:32 +0000 (00:55 -0400)]
Improve CSW docs
Matthias Clasen [Mon, 31 Aug 2009 04:20:39 +0000 (00:20 -0400)]
Add an offscreen window demo
Petr Kovar [Sun, 30 Aug 2009 16:31:22 +0000 (18:31 +0200)]
Updated Czech translation
Matthias Clasen [Sun, 30 Aug 2009 15:14:40 +0000 (11:14 -0400)]
Warn when a parent is destroyed
Previously gdk_window_new would silently return NULL. Bug 590921.
Matthias Clasen [Sun, 30 Aug 2009 15:10:47 +0000 (11:10 -0400)]
Forgotten part of the lpi change
Marek Kasik [Sun, 30 Aug 2009 01:34:05 +0000 (21:34 -0400)]
Return meaningful default values for lpi and resolution
Change default values returned by gtk_print_settings_get_printer_lpi()
and gtk_print_settings_get_resolution{_x, _y}(). New values are 150 for
lpi and 300 for resolution (instead of 0) (#590861).
Marek Kasik [Sun, 30 Aug 2009 01:32:01 +0000 (21:32 -0400)]
Add CUPS events as soon as possible when printing
CUPS events are added in prepare part of the main loop. These
events are initialized before their addition (#434318, #586466).
Paolo Borelli [Sun, 30 Aug 2009 01:29:57 +0000 (21:29 -0400)]
buffer_backspace should delete \r\n in one go
Special case \r\n in gtk_text_buffer_backspace since \r should not be
reinserted even if we are deleting one char at a time. Also add
corresponding unit test. Fixes bug #544724.
Marek Kasik [Sun, 30 Aug 2009 01:17:47 +0000 (21:17 -0400)]
Emit "update-custom-widget" when the page setup changes
Previously, the signal was only emitted when the user selected
another printer. Bug 593001.
Christian Persch [Sun, 30 Aug 2009 01:15:10 +0000 (21:15 -0400)]
Plug a mem leak
GtkWindow was leaking the startup_id, reported in bug 593317.
Davyd Madeley [Mon, 24 Aug 2009 05:41:37 +0000 (15:41 +1000)]
[GtkSizeGroup] don't recurse into yourself
Christian Persch [Sun, 30 Aug 2009 00:40:50 +0000 (20:40 -0400)]
Plug a mem leak
The filechooser was leaking tooltips. Reported in bug bug 593080.
Carlos Garcia Campos [Sun, 30 Aug 2009 00:36:28 +0000 (20:36 -0400)]
Do not emit action-activated signal when there are not actions selected
This was causing problems for epiphanys location entry, reported
in bug 593481.
Pascal Terjan [Sun, 30 Aug 2009 00:27:23 +0000 (20:27 -0400)]
Show the icon window back after changing pixbuf
Otherwise, there is no way to get icons to show again after calling
_clear() once. Reported in bug 593135.
Matthias Clasen [Sun, 30 Aug 2009 00:21:21 +0000 (20:21 -0400)]
Fix --enable-{cups,papi} handling
The configure script was not doing the right thing when these
options where explicitly given. Reported by Marvin Schmidt in bug 593012.
Matthias Clasen [Sat, 29 Aug 2009 23:45:52 +0000 (19:45 -0400)]
Fix a documentation error
Reported by Eduard Bagrov in bug 592862.
Petr Kovar [Sat, 29 Aug 2009 18:26:45 +0000 (20:26 +0200)]
Updated Czech translation
Matthias Clasen [Sat, 29 Aug 2009 18:02:37 +0000 (14:02 -0400)]
Updates
Matthias Clasen [Sat, 29 Aug 2009 17:22:15 +0000 (13:22 -0400)]
Updates
Matthias Clasen [Sat, 29 Aug 2009 17:06:04 +0000 (13:06 -0400)]
Make beeps work again
Yay, beeps !
Tomasz Dominikowski [Sat, 29 Aug 2009 13:21:45 +0000 (15:21 +0200)]
Updated Polish translation
Michael Natterer [Fri, 28 Aug 2009 14:51:48 +0000 (16:51 +0200)]
Add gtk_widget_set_window()
New function as replacement for setting widget->window directly.
Should only be used in GtkWidget::realize().
Michael Natterer [Fri, 28 Aug 2009 14:27:26 +0000 (16:27 +0200)]
Bug 69872 - GTK_WIDGET_SET_FLAGS should be deprecated
Add gtk_widget_is_toplevel() for GTK_WIDGET_TOPLEVEL()
and gtk_widget_is_drawable() for GTK_WIDGET_DRAWABLE()
Manoj Kumar Giri [Fri, 28 Aug 2009 12:20:41 +0000 (17:50 +0530)]
Updated Oriya Translation
Manoj Kumar Giri [Fri, 28 Aug 2009 12:11:59 +0000 (17:41 +0530)]
Updated Oriya Translation
Kristian Rietveld [Fri, 28 Aug 2009 07:53:49 +0000 (09:53 +0200)]
Make gtk_tree_view_real_set_cursor() handle non-existing paths
Such paths (eg. a child node that is collapsed) should be ignored. This
is fixed by checking the return value of _gtk_tree_view_find_node(),
which returns a partial return value (the parent node) when it returns
TRUE. Also added a unit test.
Miloš Popović [Fri, 28 Aug 2009 00:52:14 +0000 (02:52 +0200)]
Updated Serbian translation
Miloš Popović [Fri, 28 Aug 2009 00:47:28 +0000 (02:47 +0200)]
Updated Serbian translation
Michael Natterer [Thu, 27 Aug 2009 19:12:32 +0000 (21:12 +0200)]
Add accessors for sealed member "flippable"
One step closer to makes GtkRange properly subclassable, but still
quite some accessors missing.
Michael Natterer [Thu, 27 Aug 2009 19:11:28 +0000 (21:11 +0200)]
marks_start_element(): initialize "value" to get rid of a compiler warning
Michael Natterer [Thu, 27 Aug 2009 19:10:25 +0000 (21:10 +0200)]
Fix casts in calls to g_utf8_validate()
The "end" parameter is (const gchar **), not (const gchar *).
Tommi Vainikainen [Thu, 27 Aug 2009 19:13:02 +0000 (22:13 +0300)]
Updated Finnish translation
Kristian Rietveld [Thu, 27 Aug 2009 16:09:17 +0000 (18:09 +0200)]
Bug 543310 - set_enable_tree_lines doesn't work when a cellrenderer...
Reorder drawing in gtk_tree_view_bin_expose() so that the tree lines are
drawn after the cells have been drawn. This is because cell-background
is handled in the cell renderer, so the tree lines need to be drawn
after this.
Kristian Rietveld [Thu, 27 Aug 2009 15:31:44 +0000 (17:31 +0200)]
Bug 588199 - GtkTreeView rendering glitch while using a default ...
Contrary to what was believed before, do_validate_rows() does need to
queue a normal resize (including a redraw) when it has to. The redraw
is required because of the size of the tree has changed because new
row(s) have been validated.
Kristian Rietveld [Thu, 27 Aug 2009 14:22:11 +0000 (16:22 +0200)]
Bug 592883 - Spin cell rendererer problem with double click
Block 2BUTTON and 3BUTTON press events using a button press event
handler in GtkCellRendererSpin, so that they won't be eaten and
processed by tree view.
Dan Winship [Thu, 27 Aug 2009 14:49:16 +0000 (10:49 -0400)]
fix gtk-doc syntax on GtkWidget:double-buffered, so Since gets picked up
Alexander Larsson [Thu, 27 Aug 2009 11:34:00 +0000 (13:34 +0200)]
Allow x and y to be NULL in gdk_window_get_geometry
Fixes a crash reported in bug #593249
Alexander Larsson [Thu, 27 Aug 2009 11:30:20 +0000 (13:30 +0200)]
Correct generation of broken grabs
We send a broken grab when a *parent* gets unmapped, not when
a child gets unmapped!
Alexander Larsson [Thu, 27 Aug 2009 11:11:04 +0000 (13:11 +0200)]
Make sure we only send one grab broken event
We were incorrectly sending grab broken events in two places which
could cause multiple events for a single grab broken.
Benjamin Otte [Wed, 26 Aug 2009 20:23:21 +0000 (22:23 +0200)]
Document ownership for return value of gtk_file_chooser_get_file()
Benjamin Otte [Fri, 21 Aug 2009 17:02:38 +0000 (19:02 +0200)]
Bug 592606 - Activate the default button in a respose-request callback
Previously the rightmost button with a proper response id was activated,
this is now only done if there is no default button set.
With this patch the right widget gets activated when there are multiple
widgets wth response ids conforming to is_stock_accept_response_id() as
the selected widget is made the new default widget before showing the
overwrite confirmation dialog.
Alexander Larsson [Wed, 26 Aug 2009 12:53:27 +0000 (14:53 +0200)]
Don't unnecessarily set the event mask as that can cause X errors
For instance, two clients selecting for button events can cause BadAccess.
This fixes bug 592624, where a gdk_window_reparent caused us to re-set
the event mask, breaking the workaround for the mozilla BadAccess bug.
Alexander Larsson [Wed, 26 Aug 2009 08:34:15 +0000 (10:34 +0200)]
Propagate the "send_event" flag for emulated events
This fixes bug 593011, where we were getting a bogus time on sent events
and the gnome-panel specifically looked for this and worked around it.
Mikel González [Wed, 26 Aug 2009 08:14:22 +0000 (10:14 +0200)]
Updated Asturian translation
Inaki Larranaga Murgoitio [Wed, 26 Aug 2009 08:15:35 +0000 (10:15 +0200)]
Updated Basque language
Rajesh Ranjan [Wed, 26 Aug 2009 06:22:58 +0000 (11:52 +0530)]
hindi updated by Rajesh Ranjan
Rajesh Ranjan [Wed, 26 Aug 2009 06:21:44 +0000 (11:51 +0530)]
hindi updated by Rajesh Ranjan
Alexander Larsson [Tue, 25 Aug 2009 13:43:52 +0000 (15:43 +0200)]
Fix cairo clipping to client side windows
When updating the clip region on cairo context (due to window changes or
paints of different sizes) we reset the old clip region, but this was
erronously done inside a cairo_save/cairo_restore pair, which made the
reset not take effect.
This fixes bug #592263.
Christian Dywan [Tue, 25 Aug 2009 09:58:30 +0000 (11:58 +0200)]
Bug 592901 - Crash in JPEG pixbuf loader instead of error
Initialize the error structure early enough to ensure that it
propagates properly in the case of an error. Patch by Nokia.
ifelix [Tue, 25 Aug 2009 08:45:42 +0000 (14:15 +0530)]
Updated Tamil Translations
ifelix [Tue, 25 Aug 2009 08:44:45 +0000 (14:14 +0530)]
Updated Tamil Translations
Alexander Larsson [Tue, 25 Aug 2009 08:34:10 +0000 (10:34 +0200)]
Clean up gdk_draw_drawable() composite handling
Instead of doing some magic in gdk_draw_drawable() to avoid double
offsetting when calling gdk_draw_drawable on the impl we call
the vfunc directly on the impl. Thus removing the weird magic from
gdk_draw_drawable().
I tested this with the testgtk test "text", where if the original magic
code is disabled typing a newline in the middle of a text line causes
the double offset issue to appear.
Alexander Larsson [Tue, 25 Aug 2009 08:16:39 +0000 (10:16 +0200)]
Fix clipping issue with clip masks
When the clip mask is completely inside the drawable clip region we
don't change the clip at all. However, we did set region_tag_applied,
so when the drawable clip was removed we removed the original clip mask.
This is no good, so we fix that by returning early in this case.
Fixes issue reported in bug #592752.
Alexander Larsson [Tue, 25 Aug 2009 06:57:10 +0000 (08:57 +0200)]
Fix clipping of drawn pixbufs in the no-render case
The fallback pixbuf rendering case ends up calling gdk_draw_image() on the
destination drawable wrapper, which resets the previously set clip region.
So, we need to manually get the impl and draw on that directly.
This fixes bug 592752 where we don't clip pixbuf rendering on non-render
Xservers.
Matthias Clasen [Mon, 24 Aug 2009 23:45:14 +0000 (19:45 -0400)]
Bump version
Matthias Clasen [Mon, 24 Aug 2009 22:54:51 +0000 (18:54 -0400)]
2.17.9
Matthias Clasen [Mon, 24 Aug 2009 22:17:54 +0000 (18:17 -0400)]
Documentation fixes
Matthias Clasen [Mon, 24 Aug 2009 20:31:46 +0000 (16:31 -0400)]
Updates
Matthias Clasen [Mon, 24 Aug 2009 14:37:46 +0000 (10:37 -0400)]
Document GDK_NATIVE_WINDOWS
Add a section in the release notes about it and list it
in the docs with all the other environment variables.
Gil Forcada [Mon, 24 Aug 2009 18:16:29 +0000 (20:16 +0200)]
Minor fix to Catalan translation
Carles Ferrando [Mon, 24 Aug 2009 18:16:02 +0000 (20:16 +0200)]
Updated Catalan (Valencian) translation
Gil Forcada [Mon, 24 Aug 2009 18:09:26 +0000 (20:09 +0200)]
Minor fix to Catalan translation
Carles Ferrando [Mon, 24 Aug 2009 18:06:44 +0000 (20:06 +0200)]
Updated Catalan (Valencian) translation
Christian Persch [Thu, 20 Aug 2009 13:32:22 +0000 (15:32 +0200)]
Preserve errno, and always use g_strerror()
Bug #592461.
Alexander Larsson [Mon, 24 Aug 2009 13:18:10 +0000 (15:18 +0200)]
Add support for enabling only native windows
Some applications make weird assumtions on Gtk+ that do not work anymore
with the new client-side windows support. For instance SWT/Eclipse reorders
the stacking order of the X windows directly without telling gdk this,
which breaks gdk drawing as gdk now relies on knowing the stacking order
for window clipping.
This introduces a GDK_NATIVE_WINDOWS environment variable, which if set
causes Gtk+ to always use native windows. Its more compatible with
pre-csw Gtk+ behaviour if you do weird X-specific hacks, although it does
limit the size of GdkWindows to 65535x65535.
Denis Arnaud [Mon, 24 Aug 2009 10:42:14 +0000 (12:42 +0200)]
Updated breton translation
Sweta Kothari [Mon, 24 Aug 2009 09:25:18 +0000 (14:55 +0530)]
Updated Gujarati Translations
Tor Lillqvist [Mon, 24 Aug 2009 07:08:53 +0000 (10:08 +0300)]
Update README.win32
Duarte Loreto [Sun, 23 Aug 2009 22:36:39 +0000 (23:36 +0100)]
Updated Portuguese translation
Duarte Loreto [Sun, 23 Aug 2009 22:21:56 +0000 (23:21 +0100)]
Updated Portuguese translation
Jamil Ahmed [Sun, 23 Aug 2009 20:40:03 +0000 (03:40 +0700)]
Updated Bengali translation
Kristian Rietveld [Sun, 23 Aug 2009 20:01:39 +0000 (22:01 +0200)]
Remove broken logic in backwards walks in validate_visible_area()
In validate_visible_area() it was assumed that gtk_tree_path_prev()
would always return the correct path of the preceding node. This is
obviously not true. The if-clause has been removed so that we now
always use _gtk_tree_view_find_path() to get the path from the tree,
node.
Kristian Rietveld [Sun, 23 Aug 2009 19:44:58 +0000 (21:44 +0200)]
Add a scrolling test case involving creating new rows in tree stores
Based on a bug report from Miroslav Rajcic, details are in the tree view
scrolling suite source code.
Kristian Rietveld [Sun, 23 Aug 2009 19:13:38 +0000 (21:13 +0200)]
Rework naming of tests to make better use of path matching feature
Kristian Rietveld [Sun, 23 Aug 2009 19:06:29 +0000 (21:06 +0200)]
Change prefix of tree view scrolling tests into TreeView
Kristian Rietveld [Sun, 23 Aug 2009 13:29:11 +0000 (15:29 +0200)]
Clean up code in gtk_tree_store_set_n_columns()
Clean up GtkTreeStore likewise as Benjamin Otte has done for
GtkListStore in commit
3c97f037.